Template for calculator