data = [(0, 32), (3, 13), (28, 25), (39, 0)]

people = 0
max = 0

for off, on in data:
    people = people - off + on
    if people > max:
       max = people

print(max) 

Embed on website

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