provided with share values in different years this calculates max price, year and month for all the companies