Improve NTP math