Hi,
If it works it works.
If you want it a little better PWMValue = Percentage */ 10483 will give you 2047 at 50%.

/Henrik.