Getting bearing from one GPS location to another

I am having trouble figuring out a way to calculate the bearing between the current user location and a gs destination. I found the following formula online but can’t figure out a way to implement it in Thunkable.x. Can anyone offer any guidance? Thanks.

I’ve got it working now and wanted to share, but my last problem is that I am unable to rotate an image. I cooouulllldd make a bunch of little arrow images pointing in different directions, but is there a better way?