Cost to have an internal parking sensor changed in a 2003 745LI Transmission on 2003 BMW 745Li

Car starts up fine but when you put it in drive it went back to park, then it went to nutral,visual inspection has oil leaking from valve cover gasket but dry under pan of transmission. also cost of valve cover gasket/

Asked by for the 2003 BMW 745Li