How can I calculate months in setInterval [closed]

There was a project that required me to calculate months, so I used setInterval to update it every month, but there was something abnormal, as it did not count it as a month, but rather counted it as if it were less than seconds. Here is the code.

setInterval(function(){}, (1000 * 60 * 60 * 24 * 30));

I tried to change the number, but the account remains the same and the problem is not solved