Try it yourself with a piece of paper - it is simply cosines and sines - I assume you understand simple velocity triangles and basic trig? If not PM me or Google them.
REMEMBER HOWEVER:
Correct IAS for altitude to get TAS
Correct W/V for variation (met winds are true) unless you will be using true headings.
Cannot see why you need drift on a plog when you have heading and track?
I have always found it easier to use 'sheet 2' of a spreadsheet to do mathematics on values so that sheet 1 has only the corrected/derived values - far tidier!