Automatically calculates payment amounts from Input Table