I'll try my best...
First things first... You need to understand how dates work in excel.
When you input a date in excel that date has a "Value" for example if you type 01/01/2008 (January first two thousand and eight) Excel recognizes it as a date if you change the format to number instead of displaying 01/01/2008 you'll see the number 39448. I know it's a bit strange and confusing but it kinda makes sense, see excel starts counting time since 01/01/1900 so 39448 simply means the amount of days that have gone by since 01/01/2008 until 01/01/2008 in other words 01/01/1900 = 1 01/02/1900 = 2 and so on... having said that lets take a look at the formula
Know that we have established that dates have a "Number Value" we can see whats going on the let take a look at the first part
Code:
MAX(0,MIN(H$3,$E4+1)-MAX(G$3,$D4))
This basically states we want excel to return the greatest value between 0 and some other number that is determined with other formulas lets look at it this way the greatest number between 0 and "A"
A = MIN(H$3,$E4+1)-MAX(G$3,$D4) we can change this to A = B - C
B = MIN(H$3,$E4+1)... in your case the cell H3 contains the date Feb-08 which could be any day of that month just formatted to read Feb-08 but I'm going to assume its Feb the first that date is equals 39479 E4 is 12/31/2008 (December 31st) which equals 39813 so basically the smallest number between 39479 and 39814 (because of the +1 in the formula) the result is 39479 so B = 39479
C = MAX(G$3,$D4)... the biggest number between the 2 numbers G3 = 01/01/2008 or 39448 D4 = 01/01/2008 or 39448 since both numbers are the same the answer is 39448
Now A = B - C is equals A = 39479 - 39448 A = 31
Going back to our
Code:
MAX(0,MIN(H$3,$E4+1)-MAX(G$3,$D4))
now we know we are looking for the biggest number between 0 and A A=31 the result then is 31
Lets take a look at the other side
E4 = 39813
D4 = 39448
So E4-D4 +1 = 366
now 31/366 = 0.084 (Roughly)
and 0.084 * F4 (Since F4 = 252,000) = 21,344 (Rounded with no decimals)
Hope that makes sense