Datafield ascent and decent to go for my destination

Hello,

maybe the question is a bit simple, as I’m still a beginner. I’m currently working on creating a data field for an activity. I want to have two fields that display the altitude gain and loss towards the destination during an active navigation. So far, I haven’t found anything suitable online. Perhaps I’m searching incorrectly. Thank you.