Dividing into parts to make easier to understand
1)fist step to get the date difference
outagedatecolumn outagedatediffcolumn in hours
date1 date2-date1
date2 date3-date2
date3
2)second step
get the mean time between outage in hours
3) use the formula
Weekly Reliability = e^(-168/<Mean Time Between outages in hours>)
Any Takers??