A trip to Guam that led to the resignation of acting Navy Secretary Thomas Modly cost $243,000, a Navy official said Wednesday.

Modly resigned Tuesday, shortly after he took a 35-hour trip to the USS Theodore Roosevelt and upbraided the ship’s commanding officer, Capt. Brett Crozier. Modly’s comments were broadcast over the ship’s loudspeakers.

Crozier had sent a letter to Navy officials pleading for help with an outbreak aboard the ship of COVID-19, the disease associated with the coronavirus. The letter leaked to the San Francisco Chronicle, drawing attention to the outbreak and generating a wave of headlines.