local clock offset calculation program