# Timer is showing 10year 12 hour, instead of 10years

**URL:** <https://community.temporal.io/t/timer-is-showing-10year-12-hour-instead-of-10years/9471>\
**Category:** Community Support\
**Tags:** signals, timeout, typescript-sdk, web-ui\
**Created:** [September 14, 2023, 6:46am UTC](https://community.temporal.io/t/timer-is-showing-10year-12-hour-instead-of-10years/9471 "2023-09-14T06:46:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kishore\_kumar](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/kishore_kumar/32/4015_2.png) [@kishore\_kumar](https://community.temporal.io/u/kishore_kumar)\
**Post date:** [September 14, 2023, 6:46am UTC](https://community.temporal.io/t/timer-is-showing-10year-12-hour-instead-of-10years/9471/1 "2023-09-14T06:46:13Z")

</div>

![image](https://us1.discourse-cdn.com/flex016/uploads/temporal/original/2X/0/0c2e40d295e682674d4afeb7867ad8bb71e0006c.png)  
In the code i have set the timer as just 10 years, But in the UI it is comming as 10 years & 12 hours…, any specific reason for this?

---

<div class="post-metadata">

**Author:** ![bergundy](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/bergundy/32/900_2.png) [@bergundy](https://community.temporal.io/u/bergundy)\
**Post date:** [September 14, 2023, 7:05am UTC](https://community.temporal.io/t/timer-is-showing-10year-12-hour-instead-of-10years/9471/2 "2023-09-14T07:05:01Z")

</div>

We use the `ms` library for parsing durations that has different logic from the UI, which converts durations from the server into human readable form.

`ms('10 years')` returns `315576000000`, which is just over 10 years.

Looking at the source code for that package a year is defined as 365.25 days (a Julian year which takes into account leap years).

> <https://github.com/vercel/ms/blob/dfd18036f359a3b80bf38d3d8c0bb850c0dc9b66/src/index.ts#L7>
