stats: compute work difficulty from target