calculate

fun calculate(target: State, timeForSwitch: Duration, tick: Duration): State