Even Excel has a function to do this without too much trouble, with all cost invested on the software no one realized this was basic?