I currently love my 4 year old toshiba laptop (13"). However some of the keys have stopped working and needs to be replaced. I also want to upgrade the ram from 4gb to 8gb. I know I will be running a lot of statistics programs like R,SAS, and STATA and the ram will come in handy. However the cost of the keyboard repair and upgrade will be around $300. Do you think it is worth it and cost effective to do the repairs and upgrades instead of buying a new laptop? My computer is no longer covered under warranty and any other future repairs will cost $. But other than the keyboard I haven't had a problem with it. I'm also not a fan of windows 8, and finding a windows 7 laptop is a bit more difficult and costly.
Other notes, my program is 2 years long. I'm not sure what the average lifespan of a laptop is and I'm hoping mine could last that long?