Please read the forum rules (How to get help on the Dynamo forums ) and the community guidelines (https://forum.dynamobim.com/faq )
you can try to replace the value 1 (in red below) with your calculated value.
you will need to add an input to the python script