template for calc