Hi,
You are overthinking this.
If you divide 30,000 by 20,000 it will give you 1.5, you round down that 1.5 and it will give you 1, with 50,000 you would get 2.5, rounded down : 2
so you only need a very simple division and rounding.
RoundDown(Points/20000) -> lifes
I have attached a simple scene showing this setup.
bye,
Jean