Bacterius, correct me if I'm wrong:
Your equations assume:
1) fixed starting point,
2) fixed ending point,
3) fixed gravity and
4) no restrictions as to how much time the object needs to take there.
Using that information, you derive the initial necessary velocity to move from point A to point B.
Assumptions 1) and 2) apply here as well, but from the initial post, as I understand, the gravity is an unknown which must be found, and you're given the total time T which the movement takes (or needs to take).
I don't believe that your equations, as you posted them in the current format, will solve these requirements.
Of course, I could be missing something...