Added test case that calculate tariff to pay