SDT calc: Added input validation for speed