add simple percentile based start offset function