NTP time to parts algorithm working