Headroom offset calculation