Calculator for digital design