Rule basis of the inheritance calculator

There are three verses in the Quran and four authentic hadiths which together form the rules of estate distribution in Islam.

The verses are 4:11-12 and 4:176. Following are the rules that can be deduced from them.