Simplify value calculation
input: More use-case examples added