How to Calculate Inheritance