added function to calculate revenue/day