How Do I Replicate Computed Field Functionality In Drupal 8?
There you are:

https://drupal.org/node/2112677

Basically you have to write a plugin and store your calculations in the getValue() function.