Both are technically correct. The gentive doesn't look good to my eye in this case, though, and therefore I would prefer: We worked on a three-month contract. CB
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.