This changes money by 1 every second. However, when you close the tab, it will keep collecting money for you when you come back! Try this by clicking the flag, clicking stop, waiting a few seconds, and clicking the flag again.
This assumes that a year is 365 days and a month is 30 days. Idea inspired by: https://www.coolmathgames.com/0-clicker-heroes