Calculate the bike rent for given usage of vehicle in python