New offset calculation