time = [[13, 0], [14, 25]]

start = time[0][0] * 60 + time[0][1]
end = time[1][0] * 60 + time[1][1]

use = end - start

money = 1000

if use > 30:
    over = use - 30
    money = money + ((over + 9) // 10) * 500

print(money)

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: