Here is your answer:
VB.Net:
If (number Mod 1000 = 0)
result = 20 * (number / 1000)
Else
result = 20 * (number / 1000 + 1)
C#:
if (number % 1000 == 0)
result = 20 * (number / 1000);
else
result = 20 * (number / 1000 + 1);
2
solved Looking for perfect logic in VB.Net [closed]