apply.monthly function

Apply a function over calendar periods