https://wow.gamepedia.com/API_GetRuneCooldown
You're calling the function with self? Is it a number as it should be?
Edit: Ah, now I see its a number. Perhaps its called too early before runes are available?
If a function can return a value you cant use in a formula you should make sure to only use it when a value valid.