transactions calculate back