more coding

coded daily and interval calculations