Calculator for duh's pay with memory