I’ve got some simple code here if you can interpret python.
https://github.com/armstrys/nostrfastr/blob/main/nbs/04_vanity.ipynb
Npub chars are “023456789acdefghjklmnpqrstuvwxyz” and if you use the hashrate estimates provided by rana you can calculate a rough time with a couple simple equations listed in that nb.