fixed ticket cost calculation to accomodate >=24 hours