def calc_total_hours(entries):
    """
    Calculates sum of hours from an array of entry dictionaries
    """
    total_hours = 0.0
    for entry in entries:
        total_hours = total_hours + float(entry['hours_spent'])
    return total_hours