calculate_amount_with_tax