static long secondsToCurrentMonthTick(String currentMonthValue, long offsetInSecond) {
    long currentSecond = time.seconds();
    String[] parts = currentMonthValue.split("-");
    int year = Integer.parseInt(parts[0]);
    int month = Integer.parseInt(parts[1]);
    LocalDateTime currentMonthDateTime = LocalDateTime.of(year, Month.of(month), 1, 0, 0);
    long currentMonthTick = currentMonthDateTime.plusSeconds(offsetInSecond).atOffset(ZONE_OFFSET).toEpochSecond();
    return currentMonthTick - currentSecond;
  }
Seconds to the first day of the current month, plus the offset in seconds. The result might be negative.
@param currentMonthValue The current month in string format.
@param offsetInSecond The offset in second to add to the first day of current month.
@return Seconds to reach first day plus {@code offsetInSecond} of current month.
ambry-quota/src/main/java/com/github/ambry/quota/storage/MySqlStorageUsageRefresher.java