Time = 55
total = 0

if Time - 30 < 0:
    total += 2000
else:
    total += 2000
    Time -= 30
    while Time >= 0:
        total += 500
        Time -= 10

print(total)

Embed on website

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