Klironomiko is an open source project that calculates the shares of the heirs of a deceased person without a will, according to Greek Law. It helps in dividing the estate among the eligible relatives, taking into consideration their relations, alive status, and other factors.
- Calculate the shares of the heirs based on Greek Law
- Handles various relations like spouse, children, grandchildren, siblings, etc.
- Takes into account the alive status and apodochi (acceptance) of the relatives
- Returns the shares as both percentages and fractions
You can install klironomiko using npm:
npm install klironomiko
First, import the calculateHeirPercentage
function from the package:
import { calculateHeirPercentage } from "klironomiko";
Next, create an object representing the relatives of the deceased person:
const relatives = {
spouse: { alive: true, apodochi: true },
dad: { aliveAndApodochi: true },
mum: { aliveAndApodochi: true },
descendants: [
{
fname: "John",
relation: "child",
descendants: [],
},
{
fname: "Jane",
relation: "child",
descendants: [],
},
],
siblings: [],
dadsGrandpa: {},
dadsGrandma: {},
mumsGrandpa: {},
mumsGrandma: {},
dadsRoot: [],
mumsRoot: [],
};
Finally, call the calculateHeirPercentage
function with the relatives object:
const result = calculateHeirPercentage(relatives);
console.log(result);
The result will contain the shares of the eligible relatives in the estate.
We welcome contributions from the community. If you'd like to contribute, please:
- Fork the repository
- Create a new branch for your feature or bugfix
- Commit your changes
- Create a pull request and provide a clear description of your changes
Klironomiko is released under the MIT License.