What is wrong in this solution of FCTRL question of DSA learning series

I tried to run this code giving custom inputs ,it worked properly in there but when I am submiting my code its giving Wrong Answer .Please tell me what should I do .

from math import floor
for _ in range(int(input())):
n=int(input())
nz=floor(n/5)
ntz=nz
while nz>5:
nz=floor(nz/5)
ntz+=nz
print(ntz)

Firstly, Format your code.
Secondly, You shouldn’t be using floor, instead use nz//5
Thirdly, it won’t work on n=25. The answer should be 6.

Thank you @everule1