basic summa calculation