Create parse for intervals
Fix minor math bug