Hello,
The function name should be DERIVE_<entity name>. CUSTOMER is not an entity. This is why it does not work.
In the signature, you need to provide the entity itself not just separate fields because that won't work either.
See this document: How To - MDGM: Checks and Derivations (make sure to see the note on page 56).