I tend to think of Dagobah as akin to Dragon Ball’s Hyperbolic Time Chamber/Room of Spirit & Time. One year inside the chamber takes up only one day outside of it. Dagobah time is elongated, which would account for the extended time Luke spent training/Yoda’s age catching up to him a bit more.
That’s just a “head canon” for me.