# Questions about time\_in variable

**URL:** <https://www.evolver.bio/t/questions-about-time-in-variable/468>\
**Category:** Data Processing Unit\
**Created:** [June 29, 2023, 7:51am UTC](https://www.evolver.bio/t/questions-about-time-in-variable/468 "2023-06-29T07:51:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Christian](https://avatars.discourse-cdn.com/v4/letter/c/b2d939/32.png) [@Christian](https://www.evolver.bio/u/Christian)\
**Post date:** [June 29, 2023, 7:51am UTC](https://www.evolver.bio/t/questions-about-time-in-variable/468/1 "2023-06-29T07:51:03Z")

</div>

Hei,  
I was wondering about the code for calculating the time in the pump commands in the t-stat experiment.  
The code is as follows:

```auto
time_in = - (np.log(lower_thresh[x]/average_OD)*VOLUME)/flow_rate[x]

```

Where the next line limits/sets the result to max 20.  
My question is: The “time\_in” that is “seconds”?

---

<div class="post-metadata">

**Author:** ![Christian](https://avatars.discourse-cdn.com/v4/letter/c/b2d939/32.png) [@Christian](https://www.evolver.bio/u/Christian)\
**Post date:** [June 29, 2023, 7:53am UTC](https://www.evolver.bio/t/questions-about-time-in-variable/468/2 "2023-06-29T07:53:02Z")

</div>

Ah, and is there a problem to have it \>20 seconds?

---

<div class="post-metadata">

**Author:** ![bgwong](https://yyz1.discourse-cdn.com/flex035/user_avatar/www.evolver.bio/bgwong/32/262_2.png) [@bgwong](https://www.evolver.bio/u/bgwong)\
**Post date:** [July 5, 2023, 6:04pm UTC](https://www.evolver.bio/t/questions-about-time-in-variable/468/3 "2023-07-05T18:04:18Z")

</div>

There is no issue if the pumps are matched. If influx \> efflux flow rate, then media might accumulate in the vial, potentially causing overflow. 20s is an arbitrary value that we’ve used to prevent overflow. You can tune this to what makes the most sense for your setup. Just be careful of any overflows.
