Calculate selected cells

Hi all,
Is there any possibility to calculate selected values using Handsontable?

Upd:
I use getSelected() to find selection indexes and then get data from cell to calculate. After that, set calculated value to appropriate cell.

Probably, there is a better way?

Hi @maryja.radziuk

If you need the selected value then get|Selected() > getDataAtCell() is the only way. If you are gathering data after a change, then the new value is provided via afterChange hook.