For mama's who have repainted a crib.

Seana • RN. Girl mom.
I bought a crib yesterday, and I want to repaint it. I was just curious if anyone has any experience with painting a crib, and if so, how long it took. Is there a certain amount of time that it needs to be done before baby gets here to get rid of the new paint smell? Currently 24 weeks, due June 23rd.