# NP / TSS / Time Calculator - Python

**URL:** <https://wahoox.forum.wahoofitness.com/t/np-tss-time-calculator-python/10763>\
**Category:** The Nine Hammers Tavern - General Chat\
**Created:** [August 1, 2021, 12:45pm UTC](https://wahoox.forum.wahoofitness.com/t/np-tss-time-calculator-python/10763 "2021-08-01T12:45:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![aerobrain](https://sea2.discourse-cdn.com/flex020/user_avatar/wahoox.forum.wahoofitness.com/aerobrain/32/5871_2.png) [@aerobrain](https://wahoox.forum.wahoofitness.com/u/aerobrain)\
**Post date:** [August 1, 2021, 12:45pm UTC](https://wahoox.forum.wahoofitness.com/t/np-tss-time-calculator-python/10763/1 "2021-08-01T12:45:55Z")

</div>

If there are any geeks out there like me, I’ve just written my first Python script and posting here as it’s a little tool that will let you enter your FTP and give you either time, NP or TSS you need given the other two numbers.

So, for example you can say I want to ride at 300w normalised power, for 45 minutes and it will tell you what TSS score you will get. Or you could say if I want 45 TSS and I’ve got 20 minutes to get it, what NP do I need.

Only sharing here as I’m totally brand new to Python and I welcome any feedback from the brains in the group. But also I know for some of you who do your own planning it “may” be of use 🙂

I do also have my original Excel version that took me about a tenth of the time to build lol. I can’t upload the files, but if anyone wants them just shout. Below is a screenshot of how iot looks if you run it in a terminal:

 ![Screenshot 2021-08-01 at 13.44.31](https://us1.discourse-cdn.com/flex020/uploads/thesufferfest/original/2X/4/4c3e4bcde864f03e0ad731cb3d503049b8caef27.png)

(NB: This isn’t intended to start a debate about the merits of a TSS/FTP based system 😉 )
