The program works but there's a mistake in one of the comments explanations.

The commented statement next to the second "incr =" statement should read "0 if fdo_nov is Sunday; 1 otherwise"