@pampermommy Great info here already, so I'll just post this useful calculator that I used when I had the same question:
https://investcalc.github.io/
If you have your money sitting in the bank (0% interest), for an expected 5% return you are better of investing once every 3 months.
Note...