calculation and display work