Calculating Theoretical Buffer Capacity Formula