Thank you Magician, now i understood how it works.
The input parameter z is the number of seconds in a day and it will be between
0 and 86399 and the output of the function will be maximum 86635, actually
866355 because i need it in tens of second
Now i will try to make something similar for n%86400.
it is possible to get in few steps using bit shift also the integer part?