Calculate daily magnesium intake for children