Fixed the sampling overflow to next day

Signed-off-by: oleg komarov <o.komarov11@imperial.ac.uk>
Merge branch 'master' of https://github.com/okomarov/HFbetas.git into dev
Ready for betas

Signed-off-by: oleg komarov <o.komarov11@imperial.ac.uk>