'Calculate the lower between g.max_bid_pennies
and maximum bid per day by budget'

def _lowest_max_cpm_bid_dollars(self, total_budget_dollars, bid_dollars, start, end):

    ndays = (to_date(end) - to_date(start)).days
    max_daily_bid = (total_budget_dollars / ndays)
    max_bid_dollars = (g.max_bid_pennies / 100.0)
    return min(max_daily_bid, max_bid_dollars)
