added floor of zero to calendar availability