format the total_cost better