Nimer767.
Are you working in aviation?
If so, I would have hoped you could work this out from the basic trigonometry learnt at school by age 14 or 15.
If however you are a young flight simmer then it's good to ask. I hope your school teaches you soon.