I'm new to this Q&A site, so sorry if my formulas don't look great!
I'm trying to create a function that shows the time on a clock B that's been thrown up from and caught in position A, with respect to the mass of the object it's on (the function would be TB(m)). According to a clock A in position A, clock B has been in the air for 10s, but due to GR, the time shown on clock B should be shorter (how much shorter depends on the mass). Seen as 10s isn't very long, I figured that even if position A is on a mass with a very high curvature, the velocity of the object wouldn't be enough for SR to make much of a difference, so I'm just calculating using GR for the moment (although if SR is important then please let me know!).
So far I've taken the Schwarzschild metric for clock A and B
$$TF=\frac{TA}{\sqrt {1-\frac{2Gm}{rc^2}}}$$
$$TF=\frac{TB} {\sqrt{1-\frac{2Gm}{(r+h)c^2}}}$$
equated them and solved for TB
$$TB(m)=TA\sqrt {\frac {r(c^2(r+h)-2Gm)}{(r+h)(rc^2-2Gm)}}$$
Where r is the radius of the object (which I'm keeping constant), h is the height of clock B, TF is the time elapsed on a clock 'far away', TA is the time elapsed on clock A and TB is the time elapsed on clock B.
However this is only for if the clock were always at one height h, so if I integrate it from 0 to hmax (the height at which clock B starts coming down) with respect to h, and times it by 2 (because the clock has to come down too), then that should equal TB(m).
$$TB(m)= 2\cdot \int_0^{hmax} TB(h)$$
This would work if h increased and decreased constantly, however it doesn't because gravity is acting on the clock.
This is how far I've got with my problem. Would I be right in saying that to account for gravity I need to multiply TB(h) by the inverse of the h-t function of clock B?
Aside from the calculations I've done- am I even going about this the right way? I'm about to start my final year of school, so I'm trying to find a way to work with general relativity that isn't way over my head, and the Schwarzschild formula seems like something much more manageable than most other calculations I'm seeing related to GR. If there's a better way of calculating this though, then I'm more than happy go down another route if it isn't too complex!
Thanks in advance!