dynamic affix offset calculation