Prepare data for first algorithm in 'recovery_time' type of tasks