Transaction around calculate