Using calculations (calc) and conditionals (if/else/endif) in report templates