Well you are learning, that's good. Look generally most of the first year weekly water changes take care of replenishing elements in your tank. But at some point when you have enough corals dosing is required to keep things stable. Most start with hand dosing then progress to a dosing device. Alk is the main source you should be checking to determine your dosing needs. Measure alk at the same time over 3 days and determine your alk consumption. This will tell you how much alk you need to dose daily and also calcium because they typically get consumed proportionally. Don't worry about magnesium. It only consumes at 1/10th the ratio of alk and cal so weekly water changes suffice. You want nitrates 10 to 15 and phosphate. 05 to .1 if you have a mixed reef tank with LPS.