How often should I calculate food cost and prime cost?

At minimum, calculate weekly. Weekly tracking catches problems early, while monthly tracking often finds issues too late to fix quickly.