Payment terms related functions moved to separate file, common function for calculati...