front end calculation widget