How can I embed calculations in a chart