(D / H) x Q where...
D = dosage desired (what prescriber has ordered)
H = dosage strength available (what's on HAND)
Q = the quantity or the unit of measure that contains the dosage that is available (i.e. tablets, capsules, milliliters)
Remember that all should be in same units (i.e. mg, mcg)