Add first working (raw) version of 'calculateTotal()'