TBH, if using quarter here is just shorthand for "a decade", so it might be easier just to say plainly "I spent over a decade in each of A, B and C".