Dynamic prediction of time to event with survival curves