No idea what Ks and cs are, no idea what the equation is, no idea what you are doing.
Situation you are dealing with is explained on the page two clicks away from this thread - I suppose you have already visited it, but you have not read it carefully.