To perform the calculation that you want, use the Expression Builder.
Or just type the expression if you have knowledge on this.
Here in the shown example, we are dividing the population field by the area field. So, we type [Population] / [Area]. This is to calculate the number of people per kilometer.
So, after entering down the expression tap to the OK option.