fix proof of stake calculation error with multiple stake inputs. functionize pretty print of time