04 nissan sentra

oreillys did a scan and said i need a fuel sensor/car loses power while driving/and eventually stops running/how difficult is it to replace and what should labor run me?