Group delay calculation from FDTD and mode solver