changed array to prices and added forumla for amount per year