theres noise coming from my rear end.

bout 95% sure its the pinion bearing. how much does that cost to get fixed, what would cause it to go out so early and how long can i still drive on it?