added logic for total hours and the total bill.