In the Pirates of the Spanish Main RPG they only assign damage for every 20 lashes which is a bit more realistic as getting 30 lashes shouldn't kill you but there is no to hit roll it just happens. Given that hit points in d20 games don't always represnt getting hit, but also dodging and avoiding blows i would abstract the whippings in a similar way.