оставшееся на питоне разделяют на 60

# find the remainder of variable divided by 60
r = num % 60
Trained Tuna