Whirlpool frig side by side - 7yrs old

My 7 yr old whirlpool refrigerator isn't working. I was told it might be the compressor. Both side are warm. The fan is working not no cold air. Any idea how much to repair or if this is a big enough problem to go get a new one? I can't see spending 500 or 600 for a repair.