SDT calc: Added inputs/calculations for distance