Custom attributes

Is there any function that alows me to create custom attributes from the existing fields

Absolutely, please see Derived Fields