reaction time calculation.