def days_in_month(m,y) require 'date' Date.new(y,m,-1).day end