Before starting doing any programming or data processing, I was using the machine first couple of days only for browsing and checking email and the battery would last 2-3 hours. People told me to switch to Safari for browsing but noway. After a session with Apple specialist, he recommended taking it to the Apple store to be examined.