(Cal) Rewrite of calender filter