Which is the correct way to write this phrase?

A: three weeks supply

B: three week’s supply

C: three weekses’ supply

D: three weeks’ supply

D: three weeks’ supply