Performing database calculations

Is your problem solved? I have same