FCFE/FCFF and Capex

How does Capex relate to FCFE and FCFF? I’m aware FCFF is just NI + NCC + Int(1-t) - FCInv - WCInv, and FCFE is FCFF -Int(1-t) + Net Borrowing. But I’ve seen EOC problems with Capex given instead and it’s throwing me off a bit. Is Capex simply FCInv-Dep or something? Thank you!

FC Inv = CAPEX - proceeds from sale of asset

and capex = gross ppe end-gross ppe beg