TPN Electrolytes Questions

Monday final in clinical nutrition is coming up and I still don't know how to calculate added electrolytes for tpn! The TA is no help. My web searches have been fruitless and class notes/ppt are equally useless. I need a step by step procedure for calculating Mg, K, P.