Array

From the screenshot how can I find max cr between admitdate and disdate
Thank you