resilience calculation form