From experience, I think it is something like that:

chance to hit = offence rating - defence rating + 10 * (attacker level - defenser level)