Hi Shervin,
The very first part of line 14, which is:
is a modulus division, which ignores total hours and only produces the remainder in seconds left over. (Which in your case is 3591 seconds.)
As you can see from this, modulus division returns a remainder, not a decimal fraction. (A very important difference!)
Then you bring these seconds to minutes
along with the decimal part by dividing by 60.0. You can do all this in one expression. (If you divided by just plain 60 you would just get whole minutes, because that is what you normally get with integer division. Remember, seconds and mins were declared as integers, not as floats or doubles, which are normally used for decimal calculations.)
However, this is exactly what is needed for the second expression in line 14 -
- where we just want whole minutes! Neat trick!
So on your original figure of 50931 seconds, we now have 13 hours (from line12) with 3591 seconds left over.
Hence line 14 gives us: (59.85 mins - 59 mins)*60 to bring it up to seconds.
Can't stress too much the need to check out each individual step in a mini program until you get the hang of it.
Good luck! Donnie