Calculating "new moon"

Hi all,

I need to calculate the beginning of “new” moon (the phase in which the moon is not visible), for a hobby project of mine (calculating a ming shu).

I searched the internet for such a formula but did not found one which satisfied my needs.

Does someone knows an accurate formula to calculate a new moon?

Thank you very much for your help. Wish you a very nice day.

Chris

seems simple enough

 phase = (julian_date + 4.867) / 29.53059;
 phase = phase -Floor(phase); 

This is from Julian Date to Moon Phase… a little transformation and you should be able to go from Moon Phase to Julian Date