Finding the shortest distance from a point to a line need not be a time consuming exercise if you learn this formula.

Proof of the formula