calculating works