Friends after breakup

My ex-boyfriend and I dated for 4 months but we were really close friends before that. We decided we're better off as friends, but I think we should give it some time before we talk again. How long should we leave it before being friends again?