def calc_billable_hours(entries):
    """
    Calculates billable hours from an array of entry dictionaries
    """
    billable_hours_count = 0.0
    for entry in entries:
        if entry['billable']:
            billable_hours_count = billable_hours_count + float(entry['hours_spent'])
    return billable_hours_count