Java tutorial
//package com.java2s; public class Main { public static int computeNewSize(final int inputSize) { return (int) Math.ceil((inputSize * 3.0) / 2.0); } }