Calculating Triangle Side Lengths Formula