Perception of time: 1 day to John is X days to Sally

66 Views Asked by At

I'm a ruby programmer writing a calculator for a fun blog post.

I want to quantify the perception of time between two individuals.

John has lived 236676.87 hours

Sally has lived 438290.5 hours

1 day to John is 0.010140407890302081% of his life

1 day to Sally is 0.005475820260763124% of her life

How can I go about making a statement such as:

"1 day to John is X days to Sally"

Thank you for your help in advance. ~Joel

2

There are 2 best solutions below

9
On BEST ANSWER

$$ \mbox{let}\ j=\mbox{the number of hours that John has lived.} $$ $$ \mbox{let}\ s=\mbox{the number of hours that Sally has lived.} $$ So now we have $$ \frac{1}{j} = \frac{x}{s} $$ $$ x= \frac{s}{j} = \mbox{the number of days that Sally lived in relation to John.}$$

2
On

$$1\text{ day}/J=X/S$$ where $J$ is the length of life of John and $S$ is the length of live of Sally. Solve for $X$. Be careful about units.