Macros to estimate value at risk