calculate works