
In Traveler the following formula is used to calculate the travel time between two points of a star system. time = 2x square root (distance / acceleration). If the distance is measured in m and the acceleration in m/s 2 the time gives a result in seconds . For short distances it is suitable, but not for long ones. Here is the macro giving the total travel time in units of seconds (the most exact) in units of minutes (rounding), in units of hours (rounding) and in days (rounding) &{template:default} {{name=Calculation of time }}{{to travel ?{distance_Km} Km}}{{at ?{acceleration_G} G}}{{Time on seconds [[round(2*((?{distance_Km}/?{acceleration_G}*100)**0.5))]] }}{{Time on minutes [[round(2*((?{distance_Km}/?{acceleration_G}*100)**0.5)/60)]] }}{{Time on hours [[round(2*((?{distance_Km}/?{acceleration_G}*100)**0.5)/60/60)]] }}{{Time on days [[round(2*((?{distance_Km}/?{acceleration_G}*100)**0.5)/60/60/24)]]}} So I decided to make a macro that would take a value of seconds and change it to exactly how many hours, minutes and seconds the trip lasts, without doing any rounding. Here is the macro [[floor(?{seconds}/3600)]] h [[floor(?{seconds}/60-floor(?{seconds}/3600)*60)]] min [[?{seconds}-floor(?{seconds}/3600)*3600-floor(?{seconds}/60-floor(?{seconds}/3600)*60)*60]] s Now I am left to make the output of the first macro (only taking the value of the seconds) is the input of the equation of the second macro. For this I wanted to use an intermediate variable, so that I did not have to put the entire first formula in each variable of the second formula. But just this is what I did not find how to do. How do you assign a result to a variable that will later be used in another formula? Here I leave the final macro, which works fine, but is very confusing. &{template:default} {{name=Calculation of time }}{{to travel ?{distance_Km} Km}}{{at ?{acceleration_G} G}}{{Time [[floor((2*((?{distance_Km}/?{acceleration_G}*100)**0.5))/3600)]] h [[floor((2*((?{distance_Km}/?{acceleration_G}*100)**0.5))/60-floor((2*((?{distance_Km}/?{acceleration_G}*100)**0.5))/3600)*60)]] min [[round((2*((?{distance_Km}/?{acceleration_G}*100)**0.5))-floor((2*((?{distance_Km}/?{acceleration_G}*100)**0.5))/3600)*3600-floor((2*((?{distance_Km}/?{acceleration_G}*100)**0.5))/60-floor((2*((?{distance_Km}/?{acceleration_G}*100)**0.5))/3600)*60)*60)]] s}} Yes I used 10 m/s 2 for the gravity accelaration. Thanks a lot