add base calculation.