# VPC subnet planning calculator task

**Use case:** 

Calculate private IPv4 CIDR ranges for VPC and firewall planning, including usable hosts, subnet masks, wildcard masks, and child subnets.

## Input

```json
{
  "cidrs": [
    "10.0.0.0/16",
    "10.0.1.0/24",
    "10.0.2.0/24"
  ],
  "includeSubnets": true,
  "includeBinaryRepresentation": false
}
```

## Output

```json
{
  "cidr": {
    "label": "CIDR",
    "format": "text"
  },
  "ipVersion": {
    "label": "IP Version",
    "format": "text"
  },
  "isValid": {
    "label": "Valid?",
    "format": "boolean"
  },
  "networkAddress": {
    "label": "Network Address",
    "format": "text"
  },
  "broadcastAddress": {
    "label": "Broadcast",
    "format": "text"
  },
  "firstUsableIp": {
    "label": "First Usable IP",
    "format": "text"
  },
  "lastUsableIp": {
    "label": "Last Usable IP",
    "format": "text"
  },
  "totalHosts": {
    "label": "Total Hosts",
    "format": "number"
  },
  "usableHosts": {
    "label": "Usable Hosts",
    "format": "number"
  },
  "subnetMask": {
    "label": "Subnet Mask",
    "format": "text"
  },
  "wildcardMask": {
    "label": "Wildcard Mask",
    "format": "text"
  },
  "prefixLength": {
    "label": "Prefix Length",
    "format": "number"
  },
  "ipClass": {
    "label": "IP Class",
    "format": "text"
  },
  "isPrivate": {
    "label": "Private?",
    "format": "boolean"
  },
  "error": {
    "label": "Error",
    "format": "text"
  }
}
```

## About this Actor

This example demonstrates how to use [CIDR IP Range Calculator](https://apify.com/automation-lab/cidr-ip-range-calculator) with a specific input configuration. Visit the [Actor detail page](https://apify.com/automation-lab/cidr-ip-range-calculator) to learn more, explore other use cases, and run it yourself.