Using 'normal' trigs ie COS, SIN etc you will only get an approximate answer as these apply to FLAT surfaces. To get an accurate answer you have to get into 'spherical' trig which is basically what is hidden inside IRS/INS & GPS but is outside the ATPL syllabus. Also bear in mind Earth is not a true sphere.