Variable slomo rate

i would like a feauture to be able to re-time/ slomo a shot to a desidered length, instead of simple 2 x, 4 x slomo function.