In my program I have LC as a variable word ranging from 0 to 57000. It is the mainloop counter

In a subroutine I want to pause a variable amount of time in the 0 to 5000 part of the mainloop counts. I have tried to use:

pause 0 min 5000-LC

in other words, if LC is 5000 to 57000 don't pause at all. and between 0 and 5000, pause for a proportional length of time.

I think my pause pause and min statement is missing some syntax?

Any hints please?