This example is to show how to write a basic Espresso test. The calculation can be tested in a unit test. But here it is to show how to simulate user input behavior with Espresso test.
You can run it in Android Studio with an emulator or an Android mobile. The test result will be shown in Android Studio.