updated the way that duration is computed in get_power function.
Merge branch 'master' of https://github.com/aaronjfisher/Adaptive_Shiny