<pre>function daysPerMonth n, y  if n = 2 then    if y mod 1000 <> 0 and y mod 4 = 0 then return 29 else return 28  end if  put ",1,3,5,7,8,10,12," into longMonths  if comma & n & comma is in longMonths then return 31 else return 30end daysPerMonth</pre>