base: better right panel calculation