proof of work calculation.