How can I add a calculation to the configuration widget?