You should pull this WRange -> cells conversion out into its own variable, and will need to round up instead of down to ensure you don't introduce issues with the shroud renderer clipping.