Whenever I use a calculated field in the query to calculate another field I am getting the input prom
You can't do that. Chicken and egg.
The query doesn't know about any calculated fields until you run the query, so if you expect to calculate it in one spot and then use it in another it can't because it hasn't calculated it. So, either you make the first calculated field in one query, save it, then use the query as the basis for another query where you can use the calculated field like a regular field.
Or you use the logic of the calculation downstream in the same query. Suppose you have a calculated FieldZ based on calculated FieldY:
FieldY: FieldA + FieldB
FieldZ: FieldY*3
It has no idea what FieldY is because you are calculating it in the same query. You use FieldY's logic in FieldZ without referenceing FieldY:
FieldY: FieldA + FieldB
FieldZ: (FieldA + FieldB) * 3
Or again, make a query calculating FieldY save it, then make a new query at which time FieldY will be available for use in any other calculations.