How about...

x = dTotalRecords mod 8