Calculate availability