martingale group tp calc