add popup window calc