some formulae for next time