calculate data