Depending on the brand, you may need to wait 3 to 7 days before the putty is firm enough to paint.
I can give you more targeted tips based on the and complexity of your window.
Do not measure the old broken pieces. Instead, measure the opening of the window frame itself.