calculate stats on calculator