How do you get the Broadcast address of an IP address?

The address before the next valid network address will be the broadcast address

For Example:192.168.1.64

the broadcast address is 192.168.1.127