min and max stake time calc added

added calculation of min and max stake time