Exercise for DAM. Calculator app.