Updated velocity calculation for elevator