I've inclined to write "twelve months' duration" rather than "twelve months duration." I asked google and, in fairness, it spent a little while thinking and told me both were grammatically correct.
I know people here know better than google.
I know people here know better than google.