Just study the concept of weighted average and try to listen to the gibberish of market sentiments and you will have it figured out most of it. Stock prices are mostly speculations based on market sentiments to which one parameter is company performance.