' for ' is indeed necessary since it refers to the range of time involved. ' for a total of 14 years. ' is an adverbial phrase modiying the verb ' worked '
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.