Friction and Speed calculation