fixed availability calculation