One less that the number of days since New Moon on January 1 in the Gregorian calendar. Let G be the golden number of a given year, then
Golden Number
Tøndering, C. "Frequently Asked Questions about Calendars." http://www.tondering.dk/claus/calendar.html.