It usually takes 2-3 days for coffee grounds to mold, but it can vary depending on the temperature and humidity levels around the place. Therefore, you should use freshly brewed coffee grounds as fertilizer. Just rinse them well and use them as suggested in the guide.