Answer
13 bottles per day.
Work Step by Step
500 mL bottle contains 12 mg magnesium.
500mL$\times$2=1000 mL=1 L bottle contains $12mg\times2=24\,mg $ magnesium.
Recommended daily allowance=320 mg
Number of bottles to drink to obtain recommended daily allowance of magnesium=$\frac{320\,mg/day}{24\,mg/bottle}$=13 bottles per day.